<html>
<head>
    <title>add</title>
</head>
<body>
<div style="width: 800px">
    <form id="forms" class="form-horizontal" role="form">
        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">用户名称:</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" id="firstname" placeholder="请输入用户名称" name="userName">
            </div>
        </div>
        <div class="form-group">
            <label for="a" class="col-sm-2 control-label">用户密码:</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" id="a" placeholder="请输入用户密码" name="userPwd">
            </div>
        </div>
        <div class="form-group">
            <label for="b" class="col-sm-2 control-label">用户生日:</label>
            <div class="col-sm-4">
                <input type="date" class="form-control" id="b" placeholder="请输入用户生日" name="birth">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">用户性别:</label>
            <div class="col-sm-4">
                <input type="radio" name="userSex" value="1">男
                <input type="radio" name="userSex" value="2">女
            </div>
        </div>
        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">用户状态:</label>
            <div class="col-sm-4">
                <div class="form-group">
                    <select class="form-control" name="depId">
                        <option value="0">正常</option>
                        <option value="3">冻结</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">角色:</label>
            <div class="col-sm-6">
                    <th:block th:each="r : ${role}">
                        <pre> <input type="checkbox" th:value="${r.roleId}" name="roleIds"> <span th:text="${r.roleName}"></span>
                    </th:block>
            </div>
        </div>
    </form>
</div>
</body>
</html>
